﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Diagnostics;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace KC.Presentation.MVCMS
{
	public partial class Main : Form
	{
		private string ConnStr = System.Configuration.ConfigurationManager.ConnectionStrings["SQL"].ConnectionString;
		public Main()
		{
			InitializeComponent();
		}

		// Posts
		private void manageToolStripMenuItem_Click(object sender, EventArgs e)
		{

		}
		private void createToolStripMenuItem_Click(object sender, EventArgs e)
		{

		}
		private void exportToolStripMenuItem_Click(object sender, EventArgs e)
		{

		}



		// Reports
		private void sessionsToolStripMenuItem_Click(object sender, EventArgs e)
		{

		}
		private void referrersToolStripMenuItem_Click(object sender, EventArgs e)
		{

		}
		private void liveMonitorToolStripMenuItem_Click(object sender, EventArgs e)
		{
			new LiveMonitor(ConnStr).Show();
		}
		private void searchQueriesToolStripMenuItem_Click(object sender, EventArgs e)
		{

		}



		// External 
		private void googleAdsenseToolStripMenuItem_Click(object sender, EventArgs e)
		{
			Process.Start("http://adsense.google.com");
		}
		private void googleAnalyticsToolStripMenuItem_Click(object sender, EventArgs e)
		{
			Process.Start("https://www.google.com/analytics/web/?pli=1#report/visitors-overview/a20239828w40318158p40081009/");
		}
		private void googleToolsToolStripMenuItem_Click(object sender, EventArgs e)
		{
			Process.Start("https://www.google.com/webmasters/tools/home");
		}
	}
}
